/*
 * Copyright (c) 2017. danlu.com Co.Ltd. All rights reserved.
 */

package cn.com.dhc.danlu.dlware.net;

import cn.com.dhc.danlu.delegate.callback.IBaseView;
import rx.subscriptions.CompositeSubscription;

/**
 * User: Geek_Soledad(wuhaiyang@danlu.com)
 * Date: 2016-09-19
 * Time: 10:55
 * Description: .....
 */
public class BaseNetworkTaskManager <V extends IBaseView> {
    protected CompositeSubscription mCompositeSubscription;
    protected V mViewBridge;

    public void attachHostView(V viewBridge) {
        this.mViewBridge = viewBridge;
        mCompositeSubscription = new CompositeSubscription();
    }

    public void detachHostView() {
        this.mCompositeSubscription.unsubscribe();
        mCompositeSubscription = null;
    }

}
